<?php

class Manager_Model_Catalog
{
public function catalogInserted($data){
      $db = Zend_Registry::get('Zend_Db');
      $db->insert('products',$data);
      
    }
  public function getData(){
     $db = Zend_Registry::get('Zend_Db');
      $sql = "SELECT * FROM products a, category b where a.category_code = b.category_code order by a.product_code desc";
      $result = $db->fetchAll($sql);

      return $result;
 }


}

